﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WuYuHotel.Controllers
{
    public class TestController : Controller
    {
        // GET: Test
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult TestView1()
        {
            if (Request.Cookies["openid"] == null)
            {
                ViewBag.msg = "当cookies没有openid";
            }
            else
            {
                ViewBag.msg = "从cookies中获取到的openid:" + Request.Cookies["openid"].Value.ToString();
            }
            return View("TestView1");
        }
    }
}